
a1 = {"乾":"111" , "兑":"011" , "离":"101" , "震":"001" , "巽":"110" , "坎":"010" , "艮":"100" , "坤":"000"}
text = "震坤艮 震艮震 坤巽坤 坤巽震 震巽兑 震艮震 震离艮 震离艮"
lt=text.split(" ")
print(lt)

import libnum
a2=''
for i in lt:
    a3=''
    for j in i:
        a3+=a1[j]
    tmp=libnum.b2s(a3).decode()
    a2+=(tmp)
print(f'NSSCTF{{{a2}}}')